﻿using DapperExtensions;
using Nova_DAL;
using Nova_MOD;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nova_BLL
{
    public class TSQModeRelationsBll
    {
        private readonly TSQModeRelationsDal dal = new TSQModeRelationsDal();

        public TSQModeRelations GetByWmsType(int wmsType)
        {
            var predicate = Predicates.Field<TSQModeRelations>(t => t.WMSType, Operator.Eq, wmsType);
            return dal.GetByField(predicate);
        }
    }
}
